package com.emep.changzhi.analyse.repository.datamonitor.realtime;

import com.emep.changzhi.analyse.entity.datamonitor.realtime.AirQualityRealtime;
import org.springframework.data.cassandra.repository.*;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author xy
 * @Description: 空气质量_实时数据持久层
 * @date 2018/2/27 11:45
 * @version V1.0
 */

public interface AirQualityRealtimeRepository extends CassandraRepository<AirQualityRealtime,Long> {
    @Query("select * from data_realtime_airquality limit :pageSize")
    List<AirQualityRealtime> airQualityRealtimeHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_realtime_airquality where token(id)>token(:id) limit :pageSize")
    List<AirQualityRealtime> airQualityRealtimeFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);

}
